import request from '@/utils/request'

// 查询列表
export function queryDataAnnotationList(query) {
  return request({
    url: '/job/job/list',
    method: 'get',
    params: query
  })
}

// 查询任务主列表
export function listJob(query) {
    return request({
      url: '/job/job/list',
      method: 'get',
      params: query
    })
  }

// 查询详情列表
export function queryDetailPageData(id) {
  return request({
    url: '/markRecord/markRecord/' + id,
    method: 'get',
  })
}

// 保存和提交
export function saveSubmitDetailPageData(data) {
  return request({
    url: '/job/job/',
    method: 'put',
    data: data
  })
}

// 文件资源
export function exportResource(query) {
  return request({
    url: '/file/resource/download',
    method: 'get',
    params: query
  })
}
